package com.wenjiang.task;

import com.wenjiang.util.RedisUtils;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TestJob extends Task {

    @Autowired
    RedisUtils redisUtils;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("动态添加成功");
        System.out.println("redisutil" +redisUtils);
    }
}
